def coor_dis(p1,p2):
    dx = p2[0] - p1[0]
    dy = p2[1] - p1[1]
    dz = p2[2] - p1[2]
    return (dx**2 + dy**2 + dz**2)**0.5

p1 = (1,2,3)
p2 = (-4,8,9)
dis = coor_dis(p1,p2)
print(f"两个坐标之间的距离为：{dis:.2f}")